import Mock from 'mockjs'

Mock.mock('/mock/alert/getList', 'post', () => {
  return {
    code: 200,
    data: {
      userId: "100001",
      username: '@cname',
      userEmail: '@email',
      'status|1-3': 1,
      deptId: ['token'],
      'role|0-1': 1,
      token: '123456',
      roleList: []
    }
  }
})

Mock.mock('/mock/alert/getNoRepeatList', 'post', () => {
  return {
    code: 200,
    data: {
      userId: "100001",
      username: '@cname',
      userEmail: '@email',
      'status|1-3': 1,
      deptId: ['token'],
      'role|0-1': 1,
      token: '123456',
      roleList: []
    }
  }
})

Mock.mock('/mock/warningConfig/getCfgIndexName', 'get', () => {
  return {
    code: 200,
    data: {
      userId: "100001",
      username: '@cname',
      userEmail: '@email',
      'status|1-3': 1,
      deptId: ['token'],
      'role|0-1': 1,
      token: '123456',
      roleList: []
    }
  }
})